/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
<template>
    <sf-form ref="form"
             class="label-form"
             :label-width="100">
        <sf-form-item>
            <sf-fieldlabel>
                <lang>AI Flow描述</lang>
            </sf-fieldlabel>
               <sf-textarea
                v-model="submitData.description"
                :default-width="defaultWidth"
                :max-length="300"
                :utf8-length="false" />
        </sf-form-item>
    </sf-form>
</template>
<script>
const DEFAULT_WIDTH = 336;
const DEFAULT_VALUE = {
    description: ''
};

export default {
    data() {
        return {
            submitData: { ...DEFAULT_VALUE }
        }
    },
    computed: {
        defaultWidth () {
            return DEFAULT_WIDTH;
        }
    },
    methods: {
         getJsonValue () {
            return this.submitData;
        },

        setJsonValue (data) {
            this.submitData = {...DEFAULT_VALUE, ...data};
        },
    }, 
};
</script>
      